Skip to content

Reduce memory usage in ReduceToPlaneMF2Patchy#5258

Open
BenWibking wants to merge 3 commits intoAMReX-Codes:developmentfrom
BenWibking:reduceplanepatchy-lessmem
Open

Reduce memory usage in ReduceToPlaneMF2Patchy#5258
BenWibking wants to merge 3 commits intoAMReX-Codes:developmentfrom
BenWibking:reduceplanepatchy-lessmem

Conversation

@BenWibking
Copy link
Copy Markdown
Contributor

@BenWibking BenWibking commented Mar 30, 2026

Summary

Avoid calling simplify() on the BoxList. This avoids making boxes that are too big for any given MPI rank, and avoids out of memory situations with very large runs.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

BenWibking and others added 2 commits March 30, 2026 12:15
Commented out the simplify function call on bl_unique.
@BenWibking BenWibking changed the title [WIP] Reduce memory usage in ReduceToPlaneMF2Patchy Reduce memory usage in ReduceToPlaneMF2Patchy Apr 1, 2026
@BenWibking BenWibking marked this pull request as ready for review April 1, 2026 13:53
@BenWibking BenWibking requested a review from WeiqunZhang April 1, 2026 13:54
@WeiqunZhang
Copy link
Copy Markdown
Member

@BenWibking Did you try adding maxSize after removeOverlap instead of removing simplify()? It might be much more efficient for the required removeOverlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants